import request from '/@/utils/request'
// 查询单点登陆授权应用列表
export function listSsoAppInfo(query:object) {
  return request({
    url: '/api/v1/sso/server/ssoAppInfo/list',
    method: 'get',
    params: query
  })
}
// 查询单点登陆授权应用详细
export function getSsoAppInfo(id:number) {
  return request({
    url: '/api/v1/sso/server/ssoAppInfo/get',
    method: 'get',
    params: {
      id: id.toString()
    }
  })
}
// 新增单点登陆授权应用
export function addSsoAppInfo(data:object) {
  return request({
    url: '/api/v1/sso/server/ssoAppInfo/add',
    method: 'post',
    data: data
  })
}
// 修改单点登陆授权应用
export function updateSsoAppInfo(data:object) {
  return request({
    url: '/api/v1/sso/server/ssoAppInfo/edit',
    method: 'put',
    data: data
  })
}
// 删除单点登陆授权应用
export function delSsoAppInfo(ids:number[]) {
  return request({
    url: '/api/v1/sso/server/ssoAppInfo/delete',
    method: 'delete',
    data:{
      ids:ids
    }
  })
}
